﻿using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;

namespace HW1
{
    class Program
    {
        static bool isPrime(int num)
        {
            bool flag = true; //标志为素数
            if (num == 1 || num == 2 || num == 3 || num == 5 || num == 7)
            {
                flag = true;
            }
            else if (num % 2 == 0 || num % 3 == 0 || num % 5 == 0 || num % 7 == 0)
            {
                flag = false;
            }
            else
            {
                flag = true;
            }
            return flag;
        }
        static void Main(string[] args)
        {
            int begin = 6, end = 100;
            int n;
            for(n = begin; n <= end; n += 2)
            {
                int i;
                for(i = 2; i <= n/2; i++)
                {
                    if(isPrime(i) && isPrime(n - i))
                    {
                        Console.WriteLine(n + "=" + i + "+" + (n-i));
                        //输出并跳出循环
                        break;
                    }
                }
            }
            Console.ReadLine();
        }
    }
}
